<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML >
<html>
  <head>
    <base href="<%=basePath%>">
		<title></title>
		<link rel="stylesheet" type="text/css" href="myone/result.css"/>
		<link rel="stylesheet" type="text/css" href="css/result.css"/>
		<link rel="stylesheet" type="text/css" href="css/admin.css"/>
	</head>
	<body>
		
		<div class="user_top_logo theme_bgcolor_white border_top_5_ff4f3d margin_bottom_30">
			
			<div class="theme_center_div_1000">
				<div class="logo_div float_left">
					<a href="#"><img src="img/log/logo_toutiaohao.png"/></a>
				</div>
				
				<div class="float_right">
					<div class="icon_40 float_left margin_right_15">
						<img src="img/ico/icon_mail.png"/>
						<!-- 下拉框没做 -->
					</div>
					<div class="circle_img_40 float_left margin_both_10">
						<a href=""><img src="img/upload/user/toux.jpg"/></a>
					</div>
					<div class="user_hint float_left">
						<div class="btn_div theme_ui_color">
							企业-新手
						</div>
						<a href="#">用户名哟</a>
					</div>
					<div class="clear_float">
						
					</div>
				</div>
				<div class="clear_float">
					
			</div>
			</div>
			<div class="clear_float">
					
			</div>
		</div>
		
		<!--
        	作者：452685609@qq.com
        	时间：2017-07-18
        	描述：左边导航
        -->
		
		<div class="theme_center_div_1000">
			<div class="left_div_175 border_top_2_d8dce4">
				<dl class="admin_nav">
					<dt><a href="#">
						<div class="icon_20 float_left img_v_mid">
							<img src="img/ico/icon_home.png"/>
						</div>主页</a></dt>
				</dl>
				<dl class="admin_nav color_zhutired">
					<dt>
						<a href="categoryAction">
							<div class="icon_20 float_left img_v_mid">
								<img src="img/ico/icon_write_ed4040.png"/>
							</div>发表
						</a>
					</dt>
				</dl>
				<dl class="admin_nav">
					<dt class="color_777"><a href="#">
						<div class="icon_20 float_left img_v_mid">
							<img src="img/ico/icon_manage_ccc.png"/>
						</div>管理
					</a></dt>
					<dd><a href="#">内容管理</a></dd>
					<dd><a href="#">评论管理</a></dd>
					<dd><a href="#">素材管理</a></dd>
					<dd><a href="#">私信</a></dd>
				</dl>
				<dl class="admin_nav">
					<dt class="color_777"><a href="#"><div class="icon_20 float_left img_v_mid">
							<img src="img/ico/icon_count.png"/>
						</div>数据统计</a></dt>
					<dd><a href="#">头条号指数</a></dd>
					<dd><a href="#">粉丝分析</a></dd>
				</dl>
				<dl class="admin_nav">
					<dt class="color_777"><a href="#"><div class="icon_20 float_left img_v_mid">
							<img src="img/ico/icon_gener.png"/>
						</div>推广</a></dt>
					<dd><a href="#">号外</a></dd>
					<dd><a href="#">成为广告主</a></dd>
				</dl>
				<dl class="admin_nav">
					<dt class="color_777"><a href="#"><div class="icon_20 float_left img_v_mid">
							<img src="img/ico/icon_lab.png"/>
						</div>实验室bete</a></dt>
					<dd><a href="#">功能管理</a></dd>
					<dd><a href="#">悟空问答</a></dd>
					<dd><a href="#">自定义菜单</a></dd>
					<dd><a href="#">正版图库</a></dd>
				</dl>
				<dl class="admin_nav">
					<dt class="color_777"><a href="#"><div class="icon_20 float_left img_v_mid">
							<img src="img/ico/icon_setting.png"/>
						</div>设置</a></dt>
					<dd><a href="#">账号信息</a></dd>
					<dd><a href="#">账号状态</a></dd>
					<dd><a href="#">账号设置</a></dd>
				</dl>
				
			</div>
			
			<!--
            	作者：452685609@qq.com
            	时间：2017-07-18
            	描述：右边部分
            -->
			
			<div class="right_div_755">
				<div class="function_type border_top_E8 border_bottom_E8">
					<ul class="margin_left_10">
						<li class="function_type_selected border_top_2_ED4040">发表文章</li>
						<li>发表视频</li>
						<li>发表图集</li>
						<li>趣味测试</li>
					</ul>
					<div class="clear_float">
				
					</div>
				</div>
				<form action="newsAction?action=addNewsInfo" method="post">					
				<div class="right_div_755 margin_top_20">
					<div class="chajian">
						<div class="margin_top_20">
							<div class="float_left news_left_text">标题</div>
							<div class="float_left margin_left_20">
								<input type="text" class="my_input" name="title"/>
							</div>
							<div class="clear_float"></div>
						</div>
						
						<div class="margin_top_20">
							<div class="float_left news_left_text">类别</div>
							<div class="float_left margin_left_20">
								<select name="categoryId">
									<c:forEach items="${categoryList }" var="category">
										<option value="${category.id }">${category.category_name }</option>
									</c:forEach>
									
								</select>
							</div>
							<div class="clear_float"></div>
						</div>
						
						<div class="margin_top_20">
							<div class="float_left news_left_text">缩略图</div>
							<div class="float_left margin_left_20">
								<script type="text/plain" id="titleImg" name="titleImg"></script>
							</div>
							<div class="clear_float"></div>
						</div>
						
						<div class="margin_top_20">
							<div class="float_left news_left_text">正文</div>
							<div class="float_left margin_left_20">
								<script type="text/plain" id="newsText" name="newsText"></script>
							</div>
							<div class="clear_float"></div>
						</div>
					
					</div>
						<input type="submit" value="发布" class="theme_ui_color2 float_right" style="width: 80px; height: 40px;"/>					
				</div>
				</form>				
			</div>	
		</div>
		
		
	<script type="text/javascript" src="uedior/ueditor.config.js"></script>
	<script type="text/javascript" src="uedior/ueditor.all.min.js"></script>
	<script type="text/javascript" src="js/jquery-2.1.0.js"></script>
	<script type="text/javascript">
		var ue = UE.getEditor('titleImg', {
			toolbars: [
			[
			'simpleupload', //单图上传
			'insertimage', //多图上传
			'cleardoc', //清空文档
			'fullscreen', //全屏
			]
			],
			initialFrameWidth : 600,//富文本宽度
			initialFrameHeight :80,//富文本高度
			});
		var ue = UE.getEditor('newsText', {
			toolbars: [
			[
			'undo', //撤销
			'redo', //重做
			'selectall', //全选
			'bold', //加粗
			'fontfamily', //字体
			'fontsize', //字号
			'forecolor', //字体颜色
			'backcolor', //背景色
			'indent', //首行缩进
			'italic', //斜体
			'formatmatch', //格式刷
			'removeformat', //清除格式
			'pasteplain', //纯文本粘贴模式
			'touppercase', //字母大写
			'tolowercase', //字母小写
			'date', //日期
			'time', //时间
			'underline', //下划线
			'strikethrough', //删除线
			'subscript', //下标
			'justifyleft', //居左对齐
			'justifyright', //居右对齐
			'justifycenter', //居中对齐
			'justifyjustify', //两端对齐
			'insertorderedlist', //有序列表
			'insertunorderedlist', //无序列表
			'simpleupload', //单图上传
			'insertimage', //多图上传
			'cleardoc', //清空文档
			'fullscreen', //全屏
			]
			],
			initialFrameWidth : 600,//富文本宽度
			initialFrameHeight :400,//富文本高度
			});
	</script>		
	</body>
</html>





